ifundefinedciteleft(=[
ifundefinedciteright)=]
ifundefinedcitemid
ifundefinedcitepunct
ifundefinedciteform
ifundefinedDeclareOption @=
verbose@
nospace
space
namedefciten #1nocite #1tempcntb@ne @ldfor citeb:=tempa make@cite@listtempcnta@ne @cite cite@list h@ldciten
citen
@=
@ namedefcite ifnextchar [tempswatruecitextempswafalsecitex[]
namedefnocite #1@filesw xout \citation tempa
ifundefined@extra@b@citeb
CITE.STY
Modify LaTeX's normal citation mechanism to:
o Sort citation numbers into ascending order; print non-numbers before
numbers. Compress lists of three or more consecutive numbers to one
number range which can be split, with difficulty, after the dash.
All numbers should be greater than zero.
E.g., if you used to get [7,5,6,?,4,9,8,Einstein,6], then this style
will give you [?,Einstein,4-6,6-9].
o Allow, but strongly discourage, line breaks within a series of
citations. Each number is separated by a comma and a small space.
A break at the beginning of an optional note is discouraged also.
o Put a highpenalty before the citation (unless you specifically forbid it
with ). Also, adjust the spacing: if there is no space or if there is
extra space due to some punctuation, then change to one inter-word space.
E.g., Something really stupidcite Larry,Curly,Moe.
A space inserted here ———^
o Define citen to get just the numbers (and write to the aux file)
without the brackets and extra formatting (`citen x' -> `12'). The
aliases and are also defined the same as citen
o `Citation...undefined' warnings are only given once per undefined
citation tag. In the text, missing numbers are represented with a
bold `?' at the first occurrence, and with a normal `?' thenceforth.
o Make nocite , cite , and citen all ignore spaces in the input tags.
Linebreaks are allowed with extra-high penalties (1000) after dashes
and commas; these may have to be taken if TeX sees no other viable
breakpoints. If you think citations are being split unnecessarily,
try using or a sloppypar environment.
Although each cite command sorts its numbers, better compression
into ranges can usually be achieved by carefully selecting the order
of the 1
ntries, or the order of initial citations when using
bibtex. Having the entries presorted will also save processing time,
especially for long lists of numbers.
Customization:
There are several commands that you may redefine (using )
to change the formatting of citation lists:
command function default
———- ———————– —————————-
reformats every entry nothing
,highpenalty printed between numbers comma + penalty + thin space
(left delimiter of list [
)right delimeter of list ]
,medpenalty printed before note comma + space
Under LaTeX2e, there are three options for :
[verbose] causes warnings for undefined citations to be repeated each
time they are used.
[nospace] eliminates the spaces after commas in the number list.
[space] uses a full inter-word space with no penalty after the commas
Some examples:
The appearance of the whole citation list is governed by cite, so
for more extensive changes to the formatting, redefine cite.
Related Note: cite.sty does not affect the numbering format of the
bibliography; the "[12]" style is still the default. To change that
format (with or without cite.sty) you can redefine biblabel, including
biblabel[1]#1.
in your personal style file, or with, for example,
biblabel[1](#1) directly
in your document. If these do not work, your LaTeX and/or document
style are very outdated.
extra@b@citeb is a hook for other style files to further specify
citations; for example, to number by chapter (see chapterbib.sty).
See also overcite.sty and drftcite.sty for superscript and draft
(draught) mode citations.
ROBUST!